package pATT.transaction.implement;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Transaction extends AbstractTransaction {
	
	public static final int BASIC = 0;
	public static final int PROFIL = 1;
	private String algorithmName = "";  //name of Profiling Algorithm
	
	/**
	 * 0-basico
	 * 1-perfil
	 * */
	private int type = 0;
	
	public Transaction(int type, String output,  String name2) {
		date = new SimpleDateFormat("HH:mm:ss:").format(new Date());
		this.output = output;
		algorithmName = name2;
		this.type = type;
	}
	
	
	public String getAlgorithmName() {
		return algorithmName;
	}
	
	public boolean isBasicType(){
		return type == BASIC;
	}
}
